#pragma once

#include "ZNetworkCommon.h"

namespace	Z	{

//------------------------------------------------------------------------------------------------------------------------
class	Stream;

//------------------------------------------------------------------------------------------------------------------------
struct	MessageHandler
{
	virtual	~MessageHandler()	{}
	virtual	void	onConnect(NetworkId kNetworkId)	= 0;
	virtual	void	onDisconnect(NetworkId kNetworkId)	= 0;
	virtual	bool	handle(Stream& stream, NetworkId kNetworkId)	= 0;
};

}